package com.qf.beanscope;

import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Repository;

@Repository
@Primary // 这个主，在多个类型的情况下优先注入这个bean
public class UserDaoImpl2 implements UserDao {
    @Override
    public void test() {
        System.out.println("UserDaoImpl2.test");
    }
}
